/**
 * 
 */
package wftElements;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;

/**
 * @author ashutosh
 * 
 */
public class Activity extends CommonFields implements Serializable {

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	private ItemType itemType;
	private String type;
	private String function;
	private String functionType;
	private String resultType;
	private String reRun;
	private int cost;
	private Role readRole;
	private Role writeRole;
	private Role executeRole;
	private String readRoleName;
	private String writeRoleName;
	private String executeRoleName;
	private String iconName;
	private String message;
	private String errorProcess;
	private String errorItemType;
	private boolean expandRole;
	private boolean runnable;
	private String eventFilter;
	private String eventType;
	private String itemTypeName;
	private List<ActivityAttribute> activityAttrList;
	private List<ProcessActivity> processActivityList;

	
	/**
	 * @return the readRoleName
	 */
	public String getReadRoleName() {
		return readRoleName;
	}

	/**
	 * @param readRoleName
	 *            the readRoleName to set
	 */
	public void setReadRoleName(String readRoleName) {
		this.readRoleName = readRoleName;
	}

	/**
	 * @return the writeRoleName
	 */
	public String getWriteRoleName() {
		return writeRoleName;
	}

	/**
	 * @param writeRoleName
	 *            the writeRoleName to set
	 */
	public void setWriteRoleName(String writeRoleName) {
		this.writeRoleName = writeRoleName;
	}

	/**
	 * @return the executeRoleName
	 */
	public String getExecuteRoleName() {
		return executeRoleName;
	}

	/**
	 * @param executeRoleName
	 *            the executeRoleName to set
	 */
	public void setExecuteRoleName(String executeRoleName) {
		this.executeRoleName = executeRoleName;
	}

	/**
	 * @return the itemTypeName
	 */
	public String getItemTypeName() {
		return itemTypeName;
	}

	/**
	 * @param itemTypeName
	 *            the itemTypeName to set
	 */
	public void setItemTypeName(String itemTypeName) {
		this.itemTypeName = itemTypeName;
	}

	/**
	 * @return the itemType
	 */
	public ItemType getItemType() {
		return itemType;
	}

	/**
	 * @param itemType
	 *            the itemType to set
	 */
	public void setItemType(ItemType itemType) {
		this.itemType = itemType;
	}

	/**
	 * @return the type
	 */
	public String getType() {
		return type;
	}

	/**
	 * @param type
	 *            the type to set
	 */
	public void setType(String type) {
		this.type = type;
	}

	/**
	 * @return the function
	 */
	public String getFunction() {
		return function;
	}

	/**
	 * @param function
	 *            the function to set
	 */
	public void setFunction(String function) {
		this.function = function;
	}

	/**
	 * @return the functionType
	 */
	public String getFunctionType() {
		return functionType;
	}

	/**
	 * @param functionType
	 *            the functionType to set
	 */
	public void setFunctionType(String functionType) {
		this.functionType = functionType;
	}

	/**
	 * @return the resultType
	 */
	public String getResultType() {
		return resultType;
	}

	/**
	 * @param resultType
	 *            the resultType to set
	 */
	public void setResultType(String resultType) {
		this.resultType = resultType;
	}

	/**
	 * @return the reRun
	 */
	public String getReRun() {
		return reRun;
	}

	/**
	 * @param reRun
	 *            the reRun to set
	 */
	public void setReRun(String reRun) {
		this.reRun = reRun;
	}

	/**
	 * @return the cost
	 */
	public int getCost() {
		return cost;
	}

	/**
	 * @param cost
	 *            the cost to set
	 */
	public void setCost(int cost) {
		this.cost = cost;
	}

	/**
	 * @return the readRole
	 */
	public Role getReadRole() {
		return readRole;
	}

	/**
	 * @param readRole
	 *            the readRole to set
	 */
	public void setReadRole(Role readRole) {
		this.readRole = readRole;
	}

	/**
	 * @return the writeRole
	 */
	public Role getWriteRole() {
		return writeRole;
	}

	/**
	 * @param writeRole
	 *            the writeRole to set
	 */
	public void setWriteRole(Role writeRole) {
		this.writeRole = writeRole;
	}

	/**
	 * @return the executeRole
	 */
	public Role getExecuteRole() {
		return executeRole;
	}

	/**
	 * @param executeRole
	 *            the executeRole to set
	 */
	public void setExecuteRole(Role executeRole) {
		this.executeRole = executeRole;
	}

	/**
	 * @return the iconName
	 */
	public String getIconName() {
		return iconName;
	}

	/**
	 * @param iconName
	 *            the iconName to set
	 */
	public void setIconName(String iconName) {
		this.iconName = iconName;
	}

	/**
	 * @return the message
	 */
	public String getMessage() {
		return message;
	}

	/**
	 * @param message
	 *            the message to set
	 */
	public void setMessage(String message) {
		this.message = message;
	}

	/**
	 * @return the errorProcess
	 */
	public String getErrorProcess() {
		return errorProcess;
	}

	/**
	 * @param errorProcess
	 *            the errorProcess to set
	 */
	public void setErrorProcess(String errorProcess) {
		this.errorProcess = errorProcess;
	}

	/**
	 * @return the errorItemType
	 */
	public String getErrorItemType() {
		return errorItemType;
	}

	/**
	 * @param errorItemType
	 *            the errorItemType to set
	 */
	public void setErrorItemType(String errorItemType) {
		this.errorItemType = errorItemType;
	}

	/**
	 * @return the expandRole
	 */
	public boolean isExpandRole() {
		return expandRole;
	}

	/**
	 * @param expandRole
	 *            the expandRole to set
	 */
	public void setExpandRole(boolean expandRole) {
		this.expandRole = expandRole;
	}

	/**
	 * @return the runnable
	 */
	public boolean isRunnable() {
		return runnable;
	}

	/**
	 * @param runnable
	 *            the runnable to set
	 */
	public void setRunnable(boolean runnable) {
		this.runnable = runnable;
	}

	/**
	 * @return the eventFilter
	 */
	public String getEventFilter() {
		return eventFilter;
	}

	/**
	 * @param eventFilter
	 *            the eventFilter to set
	 */
	public void setEventFilter(String eventFilter) {
		this.eventFilter = eventFilter;
	}

	/**
	 * @return the eventType
	 */
	public String getEventType() {
		return eventType;
	}

	/**
	 * @param eventType
	 *            the eventType to set
	 */
	public void setEventType(String eventType) {
		this.eventType = eventType;
	}

	/**
	 * @return the activityAttrList
	 */
	public List<ActivityAttribute> getActivityAttrList() {
		if (activityAttrList == null) {
			activityAttrList = new ArrayList<ActivityAttribute>();
		}
		return activityAttrList;
	}

	/**
	 * @param activityAttrList
	 *            the activityAttrList to set
	 */
	public void setActivityAttrList(List<ActivityAttribute> activityAttrList) {
		this.activityAttrList = activityAttrList;
	}

	/**
	 * @return the processActivityList
	 */
	public List<ProcessActivity> getProcessActivityList() {
		if (processActivityList == null) {
			processActivityList = new ArrayList<ProcessActivity>();
		}
		return processActivityList;
	}

	/**
	 * @param processActivityList
	 *            the processActivityList to set
	 */
	public void setProcessActivityList(List<ProcessActivity> processActivityList) {
		this.processActivityList = processActivityList;
	}
}
